package com.heavenbird.common.util;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class HttpUtil {
	private static transient Log log = LogFactory.getLog(HttpUtil.class);
	
	public static void process(HttpServletResponse response, String result) throws Exception {
		response.setContentType("text/html; charset=UTF-8");
		PrintWriter pw = response.getWriter();
		pw.write(result);
		pw.close();
	}
}
